import { Http, Jsonp, Request, RequestOptions, RequestOptionsArgs, Response } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import { Injectable } from '@angular/core';
import { MyResponse } from "./MyResponse"

export interface MyHttpService {
    get<T>(url: string,params?: {}): Promise<MyResponse<T>>;
    post<T>(url: string, params?: {}): Promise<MyResponse<T>>;
    put<T>(url: string,params?: {}): Promise<MyResponse<T>>;
    delete<T>(url: string,params?: {}): Promise<MyResponse<T>>;
    jsonpGet<T>(url: string, params?: {}): Promise<MyResponse<T>>;
    jsonpPost<T>(url: string,params?: {}): Promise<MyResponse<T>>;
    jsonpPut<T>(url: string,params?: {}): Promise<MyResponse<T>>;
    jsonpDelete<T>(url: string,params?: {}): Promise<MyResponse<T>>;
}